home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TP_TOOLS / CLOCK.DOC next >
Text File  |  1994-05-10  |  3KB  |  147 lines

  1. PROGRAMMING MANUAL
  2. ------------------
  3.   The following list of routines were written to provide clock support for 
  4. programs written in Turbo Pascal (version 5.0).  The routines include:
  5.  
  6. CLOCK_TIME_BUILD
  7. CLOCK_DATE_BUILD
  8. CLOCK_TIME
  9. CLOCK_DATE
  10.  
  11. The following is a programming example for proper use of the clock routines:
  12.  
  13. PROGRAM CLOCK_EXAMPLE
  14. USES DOS, CRT, GRAPH, CLOCK;
  15. BEGIN
  16.     CLOCK_TIME_BUILD(10,10,7,15,8,0);
  17.     CLOCK_DATE_BUILD(10,30,7,15,8,0);
  18.     CLOCK_DATE(2);
  19.     CLOCK_TIME(2);
  20. END;
  21.  
  22. NOTES: 1) The clock unit must be included in the USES line (along with any 
  23. other required units).
  24.  
  25.  
  26.  
  27. PROGRAMMING MANUAL
  28. ------------------
  29. CLOCK_TIME_BUILD
  30.  
  31. USE        CLOCK_TIME_BUILD(XLoc, YLoc, Edge, Hi, Lo, Back :INTEGER);
  32.  
  33. FUNCTION   Builds a 3D style window for TIME display use.
  34.  
  35. ARGUMENTS  XLoc                 :INTEGER
  36.        Specifies the window horizontal start location.
  37.        Legal Values: 1 to (max screen size - 100).
  38.  
  39.        YLoc                 :INTEGER
  40.        Specifies the window vertical start location.
  41.        Legal Values: 1 to (max screen size - 20).
  42.                
  43.        Edge                 :INTEGER
  44.        Specifies the color of the window border.
  45.        Legal Values: 0 to 15.
  46.  
  47.        Hi                   :INTEGER
  48.        Specifies the color of the high-lighted window side.
  49.        Legal Values: 0 to 15.
  50.  
  51.        Lo                   :INTEGER
  52.        Specifies the color of the shaded window side.
  53.        Legal Values: 0 to 15.
  54.  
  55.        Back                 :INTEGER
  56.        Specifies the time-text background color.
  57.        Legal Values: 0 to 15.
  58.  
  59. COMMENTS   The window location and text background value are 
  60.        automatically passed to the CLOCK_TIME procedure.
  61.  
  62.  
  63.  
  64. PROGRAMMING MANUAL
  65. ------------------
  66. CLOCK_DATE_BUILD
  67.  
  68. USE        CLOCK_DATE_BUILD(XLoc, YLoc, Edge, Hi, Lo, Back :INTEGER);
  69.  
  70. FUNCTION   Builds a 3D style window for DATE display use.
  71.  
  72. ARGUMENTS  XLoc                 :INTEGER
  73.        Specifies the window horizontal start location.
  74.        Legal Values: 1 to (max screen size - 100).
  75.  
  76.        YLoc                 :INTEGER
  77.        Specifies the window vertical start location.
  78.        Legal Values: 1 to (max screen size - 20).
  79.                
  80.        Edge                 :INTEGER
  81.        Specifies the color of the window border.
  82.        Legal Values: 0 to 15.
  83.  
  84.        Hi                   :INTEGER
  85.        Specifies the color of the high-lighted window side.
  86.        Legal Values: 0 to 15.
  87.  
  88.        Lo                   :INTEGER
  89.        Specifies the color of the shaded window side.
  90.        Legal Values: 0 to 15.
  91.  
  92.        Back                 :INTEGER
  93.        Specifies the date-text background color.
  94.        Legal Values: 0 to 15.
  95.  
  96. COMMENTS   The window location and text background value are 
  97.        automatically passed to the CLOCK_DATE procedure.
  98.  
  99.  
  100. PROGRAMMING MANUAL
  101. ------------------
  102. CLOCK_TIME
  103.  
  104. USE        CLOCK_TIME(Color);
  105.  
  106. FUNCTION   Displays the current TIME.
  107.  
  108. ARGUMENTS  Color                :INTEGER
  109.        Specifies the TIME-text display color.
  110.        Legal Values: 0 to 15.
  111.  
  112. COMMENTS   None.
  113.  
  114.  
  115.  
  116.  
  117. PROGRAMMING MANUAL
  118. ------------------
  119. CLOCK_DATE
  120.  
  121. USE        CLOCK_DATE(Color);
  122.  
  123. FUNCTION   Displays the current DATE.
  124.  
  125. ARGUMENTS  Color                :INTEGER
  126.        Specifies the DATE-text display color.
  127.        Legal Values: 0 to 15.
  128.  
  129. COMMENTS   None.
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.